{include file="index/header" /}
<body>
	<div class="panel admin-panel margin-top" id="add">
		<div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 编辑内容</strong></div>
		<div class="body-content">
			<form method="post" class="form-x" action=""  enctype="multipart/form-data">    
				<div class="form-group">
					<div class="label">
						<label>名称：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" value="{$nav_data.nav_name}" name="nav_name" data-validate="required:请输入标题" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>选择套餐：</label>
					</div>
					<div class="field" style="padding-top:8px;"> 
						{foreach name='pack_data' key="k" item='pack'}
						{$pack.title} <input  type="checkbox" class="pack" name="pack_id[{$k}]" value="{$pack.id}" {if $pack.pn} checked="" {/if}/><input type="text" name="price[{$k}]" class="input_edit" placeholder="实际价格" value="{$pack.pn.price}">
						<input type="text" name="original_price[{$k}]" class="input_edit"  placeholder="原价" value="{$pack.pn.original_price}"><br>
						{/foreach}
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>字体图标：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" value="{$nav_data.nav_icon}" name="nav_icon" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>字体图标背景色：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" value="{$nav_data.nav_back}" name="nav_back" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>是否在前台页面展示：</label>
					</div>
					<div class="field">
						<div class="button-group radio">
							<label class="button {if $nav_data.is_show eq 1} active {/if}">
								<span class="icon icon-check"></span>
								<input name="is_show" value="1" type="radio" {if $nav_data.is_show eq 1}  checked="checked" {/if}>是
							</label>
							<label class="button {if $nav_data.is_show eq 0} active {/if}">
								<span class="icon icon-times"></span>
								<input name="is_show" value="0"  type="radio" {if $nav_data.is_show eq 0}  checked="checked" {/if}>否
							</label>
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>排序：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" name="nav_sort" value="{$nav_data.nav_sort ?: 0}"  data-validate="required:,number:排序必须为数字" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label></label>
					</div>
					<div class="field">
						<button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</body></html>